﻿<UserControl x:Class="PrismEx.SampleApp.Modules.SimpleNavigation.SimpleNavigationView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Regions="clr-namespace:Microsoft.Practices.Prism.Regions;assembly=Microsoft.Practices.Prism"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <DockPanel>
        <ItemsControl ItemsSource="{Binding Links}" DockPanel.Dock="Top">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <TextBlock>
                        <Hyperlink Command="{Binding RelativeSource={RelativeSource AncestorType=ItemsControl}, Path=DataContext.NavigateCommand}" CommandParameter="{Binding Uri}">
                            <Run Text="{Binding Text}" />
                        </Hyperlink>
                    </TextBlock>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
        <ProgressBar Style="{StaticResource ProgressBarStyle1}" DockPanel.Dock="Top" Height="50" IsIndeterminate="True" />
        <ContentControl Regions:RegionManager.RegionName="SimpleNavigationSubRegion" />
    </DockPanel>
</UserControl>
